From: Luc Teirlinck Date: Sun, 8 Aug 2004 00:00:07 +0000 (+0000) Subject: (Translating Input): Only non-prefix bindings in `key-translation-map' X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21459 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b80f3e0766e858c7376f2602217ed6833cf0a55b;p=emacs.git (Translating Input): Only non-prefix bindings in `key-translation-map' override actual key bindings. Warn about possible indirect effect of actual key bindings on non-prefix bindings in `key-translation-map'. --- diff --git a/lispref/os.texi b/lispref/os.texi index 3e1b93339ad..42a0613bfec 100644 --- a/lispref/os.texi +++ b/lispref/os.texi @@ -1686,12 +1686,18 @@ finished; it receives the results of translation by @code{function-key-map}. @item -@code{key-translation-map} overrides actual key bindings. For example, -if @kbd{C-x f} has a binding in @code{key-translation-map}, that -translation takes effect even though @kbd{C-x f} also has a key binding -in the global map. +Non-prefix bindings in @code{key-translation-map} override actual key +bindings. For example, if @kbd{C-x f} has a non-prefix binding in +@code{key-translation-map}, that translation takes effect even though +@kbd{C-x f} also has a key binding in the global map. @end itemize +Note however that actual key bindings can have an effect on +@code{key-translation-map}, even though they are overridden by it. +Indeed, actual key bindings override @code{function-key-map} and thus +may alter the key sequence that @code{key-translation-map} receives. +Clearly, it is better to avoid to avoid this type of situation. + The intent of @code{key-translation-map} is for users to map one character set to another, including ordinary characters normally bound to @code{self-insert-command}.